import 'package:flutter/material.dart';
import 'package:pcms/screens/dashboard_screen.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '塞尚工厂生产监控',
      theme: ThemeData.dark().copyWith(
        scaffoldBackgroundColor: const Color(0xFF030A24), // Dark blue background
        primaryColor: const Color(0xFF0A79DF), // A vibrant blue for primary elements
        cardColor: const Color(0xFF0B1A3E), // Darker card color
        textTheme: Theme.of(context).textTheme.apply(
          bodyColor: Colors.white,
          displayColor: Colors.white,
        ).copyWith(
          titleLarge: const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
          bodyMedium: const TextStyle(color: Colors.white70),
        ),
        colorScheme: const ColorScheme.dark(
          primary: Color(0xFF0A79DF),
          secondary: Color(0xFF0A79DF),
        ),
      ),
      home: const DashboardScreen(),
    );
  }
}
